package com.lovo.bbs.bean;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;

/**
 * 
 * @TableName t_user
 */
@TableName(value ="t_user")
@Data
public class User implements Serializable {
    /**
     * 
     */
    @TableId(value = "u_id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "u_username")
    private String username;

    /**
     * 
     */
    @TableField(value = "u_pwd")
    private String pwd;

    /**
     * 用户昵称
     */
    @TableField(value = "u_nickname")
    private String nickname;

    @TableField(value = "u_head")
    private String head;

    /**
     * 
     */
    @TableField(value = "u_create_date",fill = FieldFill.INSERT)
    private LocalDateTime createDate;

    /**
     * 
     */
    @TableField(value = "u_update_date",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateDate;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}